package util;

import java.text.SimpleDateFormat;
import java.util.Date;

//调试信息输出工具类
public class DebugUtil {
	private final static boolean isPrint = false;
   
    public static void print(Object message) {
        if (isPrint)
            System.out.println("["
                    + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
                            .format(new Date()) + "]:" + message);
    }
    
    public static void main(String[] args) {
    	DebugUtil.print("test");
    	DebugUtil.print("test2");
	}

}